package cn.gson.springboot.controller.cuscontroller;

import cn.gson.springboot.model.service.cusservice.HomePageService;
import cn.gson.springboot.model.vo.cusvo.HomePageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/vue")
@Controller
public class HomePageController {
    @Autowired
    HomePageService homePageService;

    //    查询时间段回款
    @RequestMapping("/serch-cts")
    @ResponseBody
    public List<HomePageVo> selectShouCts(Integer empId){
        return homePageService.selectShouCts(empId);
    }

    //    查询首页某个时间段新增的客户、商机、订单、日志数量
    @RequestMapping("/save-num")
    @ResponseBody
    public List<HomePageVo> selectSaveNum(Integer empId){
        return homePageService.selectSaveNum(empId);
    }
}
